package com.overloading;

public class Overloading {

	public  int calculateArea(int x, int y ){
		
		return x*y;
	}
	public double calculateArea(int radious){
		
		return 3.14*radious*radious;
	}
	 /**
	 * @param args
	 */
	public static void main(String[] args) {
		
		 Overloading overloading= new Overloading();
		 overloading.calculateArea(5);
		// overloading.calculateArea(4,5);
		 
		 
		 /**
		  * Mehtod overloading is a compile time concept. 
		  * compilte time polymorphism 
		  * early binding
		  * static binding 
		  * mehtod name is same but no of parameter or type of parameter should be different. 
		  */
		 
		 /**
		  * For method overriding  
		  * 
		  *  1:- Inheritance must be. 
		  *  2:- Method signature should be same . 
		  *  3:- But access modifire can be different  i.e. overriden method can have either same modifier or increased modifier. 
		  */
	}
}
